home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C!T ROM 3
/
ct-rom iiib.zip
/
ct-rom iiib
/
WINDOWS
/
DIVERSEN
/
WINE02BX
/
KERMIT.ELC
< prev
next >
Wrap
Text File
|
1993-03-28
|
2KB
|
39 lines
;;; compiled by jwz@thalidomide on Thu Jul 2 14:39:21 1992
;;; from file /u/jwz/emacs19/lisp/comint/kermit.el
;;; emacs version 19.2.1 Lucid.
;;; bytecomp version 2.07; 17-jun-92.
;;; optimization is on.
;;; this file uses opcodes which do not exist in Emacs18.
(if (and (boundp 'emacs-version)
(or (and (boundp 'epoch::version) epoch::version)
(string-lessp emacs-version "19")))
(error "This file was compiled for Emacs19."))
(require 'shell)
(defvar kermit-esc-char "" "\
*Kermit's escape char")
(fset 'kermit-esc #[nil "└┴p!\n├─ !P\"ç" [process-send-string get-buffer-process kermit-esc-char char-to-string read-char] 5 "\
For sending escape sequences to a kermit running in shell mode." nil])
(fset 'kermit-send-char #[nil "└┴p!┬├ !\"ç" [process-send-string get-buffer-process char-to-string read-char] 4 "\
Send an arbitrary character to a program in shell mode." nil])
(byte-code "└ ┬├#ê└ ─┼#ê└ ╞├#ç" [define-key shell-mode-map "" kermit-esc "" kermit-send-char "\\"] 4)
(fset 'kermit-send-input-cr #[nil "└┴!ç" [comint-send-input ""] 2 "\
Like \\[comint-send-input] but end the line with carriage-return." nil])
(define-key shell-mode-map "\n" 'kermit-send-input-cr)
(fset 'kermit-default-cr #[nil "└ ┬├#ê└ ─┼#ç" [define-key shell-mode-map "" kermit-send-input-cr "\n" comint-send-input] 4 "\
Make RETURN end the line with carriage-return and LFD end it with a newline.
This is useful for talking to other systems on which carriage-return
is the normal way to end a line." nil])
(fset 'kermit-default-nl #[nil "└ ┬├#ê└ ─┼#ç" [define-key shell-mode-map "\n" kermit-send-input-cr "" comint-send-input] 4 "\
Make RETURN end the line with a newline char. This is the default state.
In this state, use LFD to send a line and end it with a carriage-return." nil])
(fset 'kermit-clean-filter #[(proc str) "è└ !├ !qê\nbê─!ê╞╟\n╚#¡å╔╩!ê¬s*ç" [process-mark proc beg process-buffer insert-before-markers str re-search-backware "[]+" t replace-match ""] 4 "\
Strip ^M and ^@ characters from process output."])
(fset 'kermit-clean-on #[nil "└┴p!┬\"ç" [set-process-filter get-buffer-process kermit-clean-filter] 3 "\
Delete all null characters and ^M's from the kermit output.
Note that another (perhaps better) way to do this is to use the
command `kermit | tr -d '\\015''." nil])
(fset 'kermit-clean-off #[nil "└┴p!┬\"ç" [set-process-filter get-buffer-process nil] 3 "\
Cancel a previous kermit-clean-shell-on command." nil])